package com.Hsu.book.mapper;

import com.Hsu.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Hsu琛君珩
 * @ClassName:UserInfoMapper
 * @date 2024-01-04
 * @apiNote
 * @Version: v1.0
 */

@Mapper
public interface UserInfoMapper {
    /**
     * 根据用户名称查询用户信息
     * @param name
     * @return
     */
    @Select("select * from user_info where user_name = #{name}")
    UserInfo selectUserByName(String name);
}

